<?php
include "admin_ad.class.php";
?>
<meta charset="UTF-8">
<head>
<script type="text/javascript" src="../js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="js/admin.js"></script>
<link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" />
<!--                       CSS                       -->
<!-- Reset Stylesheet -->
<link rel="stylesheet" href="resources/css/reset.css" type="text/css" media="screen" />
<!-- Main Stylesheet -->
<link rel="stylesheet" href="resources/css/style.css" type="text/css" media="screen" />
<!-- Invalid Stylesheet. This makes stuff look pretty. Remove it if you want the CSS completely valid -->
<link rel="stylesheet" href="resources/css/invalid.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../css/base.css" type="text/css" media="screen" />
</head>
<body style="background:none; margin:30px 30px 0 0;">
	<div class="content-box-header">
        <h3 style="margin:0;">新增管理员</h3>
        <div class="clear"></div>
    </div><br>
    <p>
		<form method="POST">
			<p><label>用户名：</label><input type="text" name="user" class="text-input small-input"></p>
			<p><label>密码：</label><input type="text" name="pwd" class="text-input small-input">
			<p><label>用户权限：</label>
			<input type="checkbox" value="1" class="limit">&nbsp;&nbsp;&nbsp;订单管理<br>
			<input type="checkbox" value="2" class="limit">&nbsp;&nbsp;&nbsp;商品管理<br>
			<input type="hidden" value="0" id="limit" name="limit"><br>
			<input type="submit" class="button" name="submit" value="新建"></p>
		</form>

		<table class="goods_cart_from">
			<tr>
				<td class="fb" style="background:#F8FCFC!important;">管理员帐号</td>
				<td class="fb" style="background:#F8FCFC!important;">创建时间</td>
				<td class="fb" style="background:#F8FCFC!important;">操作</td>
			</tr>
			<?php 
			foreach($u as $v){
				echo '<tr>';
				echo '<td>'.$v['user'].'</td>';
				echo '<td>'.$v['create_time'].'</td>';
				echo '<td><a href="?del='.$v['id'].'"onclick="return delOk();">删除</td>';
				echo '</tr>';
			}
			?>
		</table>
	</p>
</body>